<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of model
 *
 * @author Christian Simon
 */

class modelOrganisation {
    public $_id;
    public $_oid;
    public $_rid;
    public $name;
    
    public function deserialize($query)
    {
        $query = (object) $query;
        $this->_id = $query->_id;
        $this->_oid = $query->_oid;
        $this->_cid = $query->_cid;
        $this->name = htmlentities($query->name, ENT_QUOTES, 'UTF-8');
        $this->description = htmlentities($query->description, ENT_QUOTES, 'UTF-8');
        return $this;
    }
}

?>
